<?php
class Action_Community_GetJTemplate extends RL_Handler
{

	public function process ()
	{
	    $template = $this->params['template'];
		
		$this->ctx->debug->trace('[] request view "'.$template.'"');
		$view = $this->rh->views->findByName($template);
		
		if ($view) {
			$this->rh->response->setContent($view);
		} else {
			$this->rh->response->setContent("No jtemplate");
			$this->ctx->debug->error('[] view "'.$template.'"not found');
		}
		
	} // end of function process

}

?>
